export const columns = (ctx) => {
  return [
    {
      prop: 'productCode',
      label: '产品编号'
    },
    {
      prop: 'name',
      label: '产品名称'
    },
    {
      prop: 'typeName',
      label: '产品类型'
    },
    {
      prop: 'businessTypeName',
      label: '业务类型'
    },
    {
      prop: 'theoryCostPrice',
      label: '理论成本'
    },
    {
      prop: 'practiceCostPrice',
      label: '实际成本'
    },
    {
      prop: 'parValue',
      label: '产品面值'
    },
    {
      prop: 'apartmentName',
      label: '可售部门'
    },
    {
      prop: 'exchangeRangeName',
      label: '兑换范围'
    },
    {
      label: '操作',
      render: (h, row, index) => {
        return [
          <el-link
            underline={false}
            type="primary"
            class="mr10"
            onClick={() => { ctx.onDetail(row) }}
          >
          详情
          </el-link>
        ]
      }
    }
  ]
}
